package com.jjty.dataGenerator;

import com.jjty.dataGenerator.exception.EnableAutoGlobalException;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.context.annotation.EnableAspectJAutoProxy;


@SpringBootApplication
@MapperScan(basePackages = {"com.jjty.dataGenerator.*.mapper"})
@EnableJpaRepositories(basePackages = "com.jjty.dataGenerator.*.mapper")
@EntityScan(basePackages = "com.jjty.dataGenerator.*.entity") // 指定实体类所在的包路径
@EnableConfigurationProperties
@EnableTransactionManagement
@EnableAspectJAutoProxy
@EnableAutoGlobalException
public class DataGeneratorApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataGeneratorApplication.class, args);
    }
}